<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .container {
        width: 800px;
        height: 400px;
      }
    </style>
  </head>
  <body>
    <div class="container"></div>
    <script src="https://cdn.jsdelivr.net/npm/echarts@5.4.0/dist/echarts.min.js"></script>
    <script>
      const myEcharts = echarts.init(document.querySelector(".container"));
      const option = {
        title: {
          text: "柱形图",
          left: "center",
        },
        xAxis: {
          data: ["星期一", "星期二", "星期三", "星期四", "星期五"],
        },
        yAxis: {
          axisLine: {
            show: true,
          },
          axisTick: {
            show: true,
          },
        },
        tooltip:{},
        series: {
          type: "bar",
          data: [80, 98, 99, 130, 60],
        },
        color:['red']
      };
      myEcharts.setOption(option);
    </script>
  </body>
</html>
